#!/usr/bin/expect -f
set timeout 30
spawn ssh jsmini
expect "*password:" {send "Zhangyi0126\r"}
expect "*======*" {send "jj\rzhangyi01\r"} 
expect "*password:" {send "Zhangyi0126\r"}
interact